package com.fuqi.android.zhongcai.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.base.request.result.bean.AddGRResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;


/*
*  添加工人接口
* */


public class AddGRApi extends AbsRequest<AddGRApi.AddGRParams, AddGRResult> {

    public AddGRApi(AddGRParams addGRParams, Listener<AddGRResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getAddGRUrl(), addGRParams, listener, errorListener, AddGRResult.class);
    }

    public static class AddGRParams extends BaseParams {

        public AddGRParams(String name,String phone) {


                put("NAME", name);
                put("PHONE", phone);

        }
    }


}
